package com.quan.mall.commons.vo;


import com.quan.mall.entity.FmsMemberCashFlow;
import com.quan.mall.entity.UmsMember;
import com.quan.mall.entity.UmsMemberLevel;
import com.quan.mall.entity.WmsAgentInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 会员
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-08 21:41:30
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UmsMemberVo extends UmsMember {

    /**
     * 优惠券
     */
    private List<UmsCouponVo> couponVos;

    /**
     * 会员级别
     */
    private UmsMemberLevel level;

    /**
     * 代理商
     */
    private WmsAgentInfo agent;

    /**
     * 短信验证码
     */
    private String validCode;

    /**
     * 上级邀请码
     */
    private String refereeCode;

    /**
     * 邀请人数
     */
    private int cecommendCount;

    /**
     * 邀请会员升级获取的提成金额
     */
    private BigDecimal cecommendAmount;

    /**
     * 邀请的注册的会员
     */
    private List<FmsMemberCashFlow> cecommendMemberList;


    /**
     * 账户余额（已入账金额）
     */
    private BigDecimal amount;

    /**
     * 会员钱包待入账金额
     */
    private BigDecimal freezeAmount;

    /**
     * 累计收益
     */
    private BigDecimal totalAmount;


}
